﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileSystemLinqProviderConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            var query = from element in new FileSystemContext(@"C:\Users\Alan\Downloads")
                        where element.ElementType == ElementType.File && element.Path.EndsWith(".torrent")
                        orderby element.Path ascending
                        select element;

            var result = query.ToList();
        }
    }
}
